calculation of requirements